<template>
	<view class="cart-list">
    <cart-list-item  v-for="(item,index) in this.$store.state.cartList"
                       :key="index"
                       :product="item" />
	</view>
</template>

<script>
// import {mapGetters} from 'vuex'

import CartListItem from "./CartListItem";

export default {
  name: "CartList",
  components: {
    CartListItem,
  
  },
  // computed:{
  //   ...mapGetters({
  //     cartList: 'cartList'
  //   })
  // }
 
}
</script>

<style scoped>
  .cart-list{
    /* height: calc(100% - 44px - 49px - 40px);
		 */
		/* position: relative;
		bottom:40px; */
  }
  .content{
    height: 100%;
    overflow: hidden;
  }
</style>
